<?php

namespace Application\model;

use Cola\Model;

class ActorModel extends Model
{
    public $table = 'log_actor_dau';

    public function getLastDauInfo($account,$test_cid='TEST',$actor_id = 0)
    {
        $where = "account = '{$account}' and cid !='{$test_cid}'";
        if($actor_id) $where .= " AND actor_id = {$actor_id}";
        $sql = "select * from {$this->table} where $where order by login_dt desc";
        $data = $this->db('_logdb')->row($sql);
        return $data;
    }
}